http-status-codes/README.md
2023-11-09 09:19:49 -06:00

2.5 KiB

askiiart/http-codes

HTTP status codes for nginx, but better.

Original post

Collection of HTTP status codes, from @yassie_j@0w0.is and a couple others:

nginx rule

error_page 300 /error/300.html;
error_page 301 /error/301.html;
error_page 401 /error/401.html;
error_page 402 /error/402.html;
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 406 /error/406.html;
error_page 410 /error/410.html;
error_page 413 /error/413.html;
error_page 417 /error/417.html;
error_page 418 /error/418.html;
error_page 423 /error/423.html;
error_page 425 /error/425.html;
error_page 429 /error/429.html;
error_page 451 /error/451.html;
error_page 502 /error/502.html;
error_page 508 /error/508.html;