HTTP status codes:

Here is the list of all the valid HTTP - status codes, and the corresponding phrases, that PHP scripting language can generate when using the $http_response_code parameter in the header() function.
The invalid codes (for example: 199) generate a 500 Internal Server Error response.

To send a specific HTTP status code, the prototype of the header() function is:
void header(string $string, bool $replace, int $http_response_code)

The 3 parameters are:
Examples of use:
The string parameter does not contain any colon character
/* The server will ouput:
 * the response status "HTTP/1.1 204 No Content" */
header('x', TRUE, 204);
The string parameter contains a response header, of which the syntax is:
<string header-name><char colon><char space><string header-value>
/* The server will ouput:
 * the response status "HTTP/1.1 405 Method Not Allowed"
 * and the response header "Allow: GET, HEAD" */
header('Allow: GET, HEAD', TRUE, 405);

List of status codes and phrases generated by PHP:

100 Continue101 Switching Protocols102 Processing
119 Too Many Requests
134 Too Many Requests
143 Too Many Requests144 Too Many Requests145 Too Many Requests
147 Too Many Requests148 Too Many Requests
169 Too Many Requests
188 Too Many Requests189 Too Many Requests
200 OK201 Created202 Accepted203 Non-Authoritative Information204 No Content205 Reset Content206 Partial Content207 Multi-Status208 Already Reported
221 Too Many Requests
226 IM Used
233 Too Many Requests234 Too Many Requests235 Too Many Requests236 Too Many Requests237 Too Many Requests238 Too Many Requests239 Too Many Requests240 Too Many Requests241 Too Many Requests242 Too Many Requests243 Too Many Requests244 Too Many Requests245 Too Many Requests246 Too Many Requests247 Too Many Requests248 Too Many Requests249 Too Many Requests250 Too Many Requests251 Too Many Requests252 Too Many Requests253 Too Many Requests254 Too Many Requests
256 Too Many Requests257 Too Many Requests258 Too Many Requests
260 Too Many Requests
262 Too Many Requests263 Too Many Requests264 Too Many Requests
266 Too Many Requests
268 Too Many Requests269 Too Many Requests270 Too Many Requests271 Too Many Requests272 Too Many Requests
274 Too Many Requests275 Too Many Requests276 Too Many Requests277 Too Many Requests278 Too Many Requests
280 Too Many Requests281 Too Many Requests282 Too Many Requests283 Too Many Requests284 Too Many Requests285 Too Many Requests286 Too Many Requests287 Too Many Requests288 Too Many Requests289 Too Many Requests290 Too Many Requests291 Too Many Requests292 Too Many Requests293 Too Many Requests294 Too Many Requests295 Too Many Requests296 Too Many Requests297 Too Many Requests298 Too Many Requests
300 Too Many Requests301 Too Many Requests302 Too Many Requests303 See Other304 Too Many Requests305 Use Proxy306 Too Many Requests307 Too Many Requests308 Too Many Requests
310 Too Many Requests
312 Too Many Requests313 Too Many Requests314 Too Many Requests315 Too Many Requests316 Too Many Requests
318 Too Many Requests319 Too Many Requests320 Too Many Requests321 Too Many Requests322 Too Many Requests323 Too Many Requests324 Too Many Requests
326 Too Many Requests327 Too Many Requests328 Too Many Requests329 Too Many Requests330 Too Many Requests331 Too Many Requests332 Too Many Requests333 Too Many Requests334 Too Many Requests335 Too Many Requests336 Too Many Requests337 Too Many Requests338 Too Many Requests339 Too Many Requests340 Too Many Requests341 Too Many Requests342 Too Many Requests343 Too Many Requests344 Too Many Requests
350 Too Many Requests351 Too Many Requests352 Too Many Requests353 Too Many Requests354 Too Many Requests
356 Too Many Requests357 Too Many Requests
359 Too Many Requests360 Too Many Requests361 Too Many Requests362 Too Many Requests363 Too Many Requests364 Too Many Requests365 Too Many Requests366 Too Many Requests367 Too Many Requests368 Too Many Requests369 Too Many Requests370 Too Many Requests371 Too Many Requests372 Too Many Requests373 Too Many Requests374 Too Many Requests375 Too Many Requests376 Too Many Requests377 Too Many Requests378 Too Many Requests379 Too Many Requests380 Too Many Requests381 Too Many Requests382 Too Many Requests383 Too Many Requests
385 Too Many Requests386 Too Many Requests
393 Too Many Requests394 Too Many Requests395 Too Many Requests396 Too Many Requests397 Too Many Requests398 Too Many Requests399 Too Many Requests400 Too Many Requests401 Unauthorized402 Too Many Requests403 Too Many Requests404 Too Many Requests405 Too Many Requests406 Too Many Requests407 Proxy Authentication Required408 Request Timeout409 Too Many Requests410 Too Many Requests411 Too Many Requests412 Too Many Requests413 Request Entity Too Large414 Too Many Requests415 Too Many Requests416 Too Many Requests417 Too Many Requests418 Too Many Requests419 Too Many Requests420 Too Many Requests421 Too Many Requests422 Too Many Requests423 Too Many Requests424 Failed Dependency425 Too Many Requests426 Too Many Requests427 Too Many Requests428 Too Many Requests429 Too Many Requests430 Too Many Requests431 Too Many Requests432 Too Many Requests433 Too Many Requests434 Too Many Requests435 Too Many Requests436 Too Many Requests437 Too Many Requests438 Too Many Requests439 Too Many Requests440 Too Many Requests441 Too Many Requests442 Too Many Requests443 Too Many Requests444 Too Many Requests445 Too Many Requests446 Too Many Requests447 Too Many Requests448 Too Many Requests449 Too Many Requests450 Too Many Requests451 Unavailable For Legal Reasons
455 Too Many Requests456 Too Many Requests
459 Too Many Requests
461 Too Many Requests462 Too Many Requests463 Too Many Requests464 Too Many Requests465 Too Many Requests466 Too Many Requests467 Too Many Requests468 Too Many Requests469 Too Many Requests470 Too Many Requests471 Too Many Requests472 Too Many Requests473 Too Many Requests474 Too Many Requests475 Too Many Requests476 Too Many Requests477 Too Many Requests478 Too Many Requests479 Too Many Requests480 Too Many Requests481 Too Many Requests482 Too Many Requests483 Too Many Requests484 Too Many Requests485 Too Many Requests486 Too Many Requests487 Too Many Requests488 Too Many Requests489 Too Many Requests490 Too Many Requests
492 Too Many Requests493 Too Many Requests494 Too Many Requests
500 Internal Server Error501 Too Many Requests502 Too Many Requests503 Too Many Requests504 Too Many Requests505 Too Many Requests506 Too Many Requests507 Too Many Requests508 Too Many Requests509 Too Many Requests510 Too Many Requests511 Too Many Requests512 Too Many Requests513 Too Many Requests514 Too Many Requests515 Too Many Requests516 Too Many Requests517 Too Many Requests518 Too Many Requests519 Too Many Requests520 Too Many Requests
522 Too Many Requests
529 Too Many Requests530 Too Many Requests531 Too Many Requests532 Too Many Requests533 Too Many Requests534 Too Many Requests535 Too Many Requests536 Too Many Requests537 Too Many Requests538 Too Many Requests539 Too Many Requests540 Too Many Requests541 Too Many Requests542 Too Many Requests543 Too Many Requests544 Too Many Requests545 Too Many Requests546 Too Many Requests
548 Too Many Requests549 Too Many Requests550 Too Many Requests551 Too Many Requests552 Too Many Requests553 Too Many Requests554 Too Many Requests555 Too Many Requests556 Too Many Requests557 Too Many Requests558 Too Many Requests559 Too Many Requests560 Too Many Requests561 Too Many Requests
582 Too Many Requests583 Too Many Requests584 Too Many Requests585 Too Many Requests

Get the list in these other formats:

Format Description
Text code[HT]phrase[LF] ...
CSV code,"phrase"[LF] ...
XML <?xml version="1.0" encoding="UTF-8"?> <http-status-codes> <status> <code>code</code> <phrase>phrase</phrase> </status> ... </http-status-codes>
PHP $a_http_status_codes = array( code => 'phrase', ... );
Javascript var oHttpStatusCodes = { code: 'phrase', ... };
JSON {"oHttpStatusCodes": { "code": "phrase", ... }}
MySQL INSERT INTO `http_status_codes` (`code`, `phrase`) VALUES (code, 'phrase'), ...;

Hypertext Transfer Protocol:

Resource Description
RFC 2616 (HTML) HTTP/1.1
RFC 2616 (Text)
RFC 4918 (HTML) HTTP Extensions for Web Distributed Authoring and Versioning
RFC 4918 (Text)