Search code examples
phpajaxhttp-status-codeshttp-response-codes

When using Ajax with PHP, which of the following are necessary to verify success?


Which of the following answers are correct ?

  • HTTP ready state of TRUE
  • HTTP ready state of 4
  • HTTP status code < 400
  • HTTP status of 200
  • Data present in the response

Solution

  • both HTTP status of 200 and HTTP ready state of TRUE