response code 201, 503, 400 (ok)

// set response code - 201 created
http_response_code(201);
// set response code - 503 service unavailable
http_response_code(503);
// set response code - 400 bad request
  http_response_code(400);

Last updated

Was this helpful?