servicevorti.blogg.se

Echo of soul server status code 11
Echo of soul server status code 11












echo of soul server status code 11

This helps in parsing the response at the client-side. Indicates the media type (text/html or text/JSON) of the response sent to the client by the server. This tells the server about which character sets are acceptable by the client. Often sent along with a response code of 401, which means ‘unauthorized’. This is sent by the server if it needs a form of authentication before it can respond with the actual resource being requested. AuthorizationĬarries credentials containing the authentication information of the client for the resource being requested.

echo of soul server status code 11

Let’s learn about what other header options are available. We will add 2 of these to our server for success and the wrong path. Refer to this sheet for detailed info on all the available status codes.

  • Server Error: the server failed to fulfill a valid request.
  • Client Error: the request contains bad syntax or input that the user might have entered and cannot be fulfilled.
  • Redirection: further action needs to be taken on the user side to complete the request.
  • Successful: the request was successfully received, understood, and accepted.
  • Informational Response: the request was received, continuing process.
  • There are mainly five types of status code that the server issues in response to a request. These status codes tell us about what happened on the server when we made a request and in turn help us debug when we encounter any issue. Successful request completion is referred to as status code 200 and a failure at the server-side is often seen as status code 500. Adding Status CodeĪ server categorizes the response with the help of status codes.

    echo of soul server status code 11

    For example, a page not found response has a status code 404 and a successful request has a status code 200. The response has a header and status code that provides info about the response. We finally created an echo server that accepts the message and returns them to the client. You can check this by entering the wrong url or simply not pass any message. We also added an else block that will take care of requests when the page url is wrong or the message query parameter is not present.














    Echo of soul server status code 11