What is the purpose of the status property in an HTTP response?

  • To specify the content type
  • To indicate the HTTP status
  • To define the response data
  • To specify the request method
The status property in an HTTP response is used to indicate the HTTP status code for the response. HTTP status codes provide information about the outcome of an HTTP request, such as whether it was successful (e.g., status code 200 for OK) or encountered an error (e.g., status code 404 for Not Found). It helps the client understand the result of the request.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *