LaravelµÄ³£¼û¹ýʧÂëºÍÆä½ç˵
laravelÊÇÒ»ÖÖÊ¢ÐеÄphp¿ò¼Ü£¬ËüΪ¿ª·¢Ö°Ô±ÌṩÁË´ó×ڵĹ¦Ð§ºÍ¹¤¾ßÀ´½¨Éè¸ßЧ¡¢Çå¾²¡¢¿É¿¿µÄwebÓ¦ÓóÌÐò¡£ÔÚ¿ª·¢laravelÓ¦ÓóÌÐòʱ£¬¹ýʧºÍÒì³£ÊDz»¿É×èÖ¹µÄ¡£ÎªÁ˸üºÃµØÖÎÀíÕâЩ¹ýʧºÍÒì³££¬laravelÌṩÁËÒ»Ì×¹ýʧÂë½ç˵£¬ËüÃÇ×ÊÖú¿ª·¢Ö°Ô±¸üºÃµØ×éÖ¯ºÍ´¦Àí¹ýʧ£¬´Ó¶øÌá¸ßÓ¦ÓóÌÐòµÄ¿É¿¿ÐԺͿÉά»¤ÐÔ¡£
ÒÔÏÂÊÇLaravelµÄ³£¼û¹ýʧÂëºÍÆä½ç˵£º
1xx ¹ýʧÂ룺ÐÅÏ¢Àà¹ýʧ
100 Continue£ºÐ§ÀÍÆ÷ÒѾÎüÊÕµ½ÁËÇëÇó²¢¾ÙÐÐÁËһЩ´¦Àí£¬µ«ÈÔÐèÒª¿Í»§¶Ë·¢ËÍÊ£ÓàµÄÇëÇó¡£Õâ¸ö״̬ÂëÊÇÓÃÓÚHTTP/1.1ÐÒé¡£
101 Switching Protocols£ºÌåÏÖ¿Í»§¶ËÏ£ÍûЧÀÍÆ÷Éý¼¶ÐÒ飬ÀýÈç´ÓHTTP/1.0Éý¼¶µ½HTTP/1.1¡£
2xx ¹ýʧÂ룺ÀÖ³ÉÀà¹ýʧ
200 OK£ºÌåÏÖÇëÇóÒѾÀֳɴ¦Àí¡£
201 Created£ºÌåÏÖÇëÇóÒѾ±»Àֳɴ¦Àí£¬²¢ÇÒЧÀÍÆ÷½¨ÉèÁËһЩ×ÊÔ´¡£
202 Accepted£ºÌåÏÖÇëÇóÒѾ±»½ÓÊÜ£¬µ«ÉÐδ±»Ð§ÀÍÆ÷´¦Àí¡£
203 Non-Authoritative Information£ºÌåÏÖЧÀÍÆ÷ÒѾÀֳɴ¦ÀíÁËÇëÇ󣬵«·µ»ØµÄʵÌå°üÀ¨ÁËһЩ²»ÊÇÀ´×ÔÔʼЧÀÍÆ÷µÄÐÅÏ¢¡£
204 No Content£ºÌåÏÖЧÀÍÆ÷ÒѾÀֳɴ¦ÀíÇëÇ󣬵«Ã»Óзµ»ØÈκÎÄÚÈÝ¡£
205 Reset Content£ºÌåÏÖЧÀÍÆ÷ÒѾÀֳɴ¦ÀíÇëÇ󣬵«ÒªÇó¿Í»§¶ËÖØÖÃÊÓͼ¡£
206 Partial Content£ºÌåÏÖЧÀÍÆ÷ÒѾÀֳɴ¦ÀíÁ˲¿·ÖÇëÇ󣬲¢·µ»ØÁ˲¿·ÖÄÚÈÝ¡£
3xx ¹ýʧÂ룺Öض¨ÏòÀà¹ýʧ
300 Multiple Choices£ºÌåÏÖÇëÇ󷵻صÄʵÌå¿ÉÒÔÓɶà¸öλÖÃÀ´»á¼û¡£
301 Moved Permanently£ºÌåÏÖ×ÊÔ´ÒѾ±»ÓÀÊÀÒƶ¯µ½ÁËеÄλÖá£
302 Found£ºÌåÏÖ×ÊÔ´ÒѾ±»ÔÝʱÒƶ¯µ½ÁËеÄλÖá£
303 See Other£ºÌåÏÖÇëÇ󷵻صÄʵÌå¿ÉÒÔÔÚÁíÒ»¸öURIÖлñµÃ¡£
304 Not Modified£ºÌåÏÖ×ÊԴûÓб»Ð޻ڸģ¬¿ÉÒÔÖ±½Ó´Ó»º´æÖлñÈ¡¡£
307 Temporary Redirect£ºÓë302ÀàËÆ£¬µ«Ê¹ÓÃPOSTÇëÇóµÄ¿Í»§¶Ë²»Ó¦¸Ã¸ü¸ÄÇëÇóÒªÁì¡£
4xx ¹ýʧÂ룺¿Í»§¶Ë¹ýʧÀà¹ýʧ
400 Bad Request£ºÌåÏÖ¿Í»§¶Ë·¢Ë͵ÄÇëÇóÎÞЧ¡£
401 Unauthorized£ºÌåÏÖ¿Í»§¶ËÐèÒª¾ÙÐÐÉí·ÝÑéÖ¤²Å»ª»á¼û×ÊÔ´¡£
402 Payment Required£ºÌåÏÖÇëÇóµÄ×ÊÔ´ÐèÒª¸¶·Ñ¡£
403 Forbidden£ºÌåÏÖ¿Í»§¶ËûÓÐȨÏÞ»á¼ûÇëÇóµÄ×ÊÔ´¡£
404 Not Found£ºÌåÏÖÇëÇóµÄ×ÊÔ´²»±£´æ¡£
405 Method Not Allowed£ºÌåÏÖ¿Í»§¶ËʹÓÃÁ˲»±»ÔÊÐíµÄHTTPÒªÌå»á¼ûÇëÇóµÄ×ÊÔ´¡£
406 Not Acceptable£ºÌåÏÖÇëÇóµÄÄÚÈÝÀàÐÍÓëЧÀÍÆ÷ÎÞ·¨´¦ÀíµÄÄÚÈÝÀàÐͲ»Æ¥Åä¡£
407 Proxy Authentication Required£ºÌåÏÖ¿Í»§¶Ë²»¾ßÓлá¼ûÇëÇó×ÊÔ´ËùÐèµÄÊðÀíÉí·ÝÑéÖ¤ÐÅÏ¢¡£
408 Request Timeout£ºÌåÏÖÇëÇó³¬Ê±¡£
409 Conflict£ºÌåÏÖÇëÇóÓë×ÊÔ´µÄÄ¿½ñ״̬³åÍ»¡£
410 Gone£ºÌåÏÖÇëÇó×ÊÔ´²»¿ÉÓã¬Í¨³£ÊÇÓÉÓÚÒѾ±»ÓÀÊÀɾ³ý¡£
411 Length Required£ºÌåÏÖȱÉÙ±ØÐèµÄContent-LengthÍ·¡£
412 Precondition Failed£ºÌåÏÖÇëÇóÍ·Öиø³öµÄһЩÏȾöÌõ¼þʧ°ÜÁË¡£
413 Payload Too Large£ºÌåÏÖÇëÇóµÄʵÌå¹ý´ó¡£
414 URI Too Long£ºÌåÏÖÇëÇóµÄURI¹ý³¤¡£
415 Unsupported Media Type£ºÌåÏÖÇëÇóµÄʵÌåÀàÐͲ»ÊÜÖ§³Ö¡£
416 Range Not Satisfiable£ºÌåÏÖÇëÇóµÄ¹æÄ£ÎÞ·¨Öª×ã¡£
417 Expectation Failed£ºÌåÏÖÇëÇóÎÞ·¨Öª×ãЧÀÍÆ÷ÖеÄExpectÇëÇóÍ·×ֶΡ£
5xx ¹ýʧÂ룺ЧÀÍÆ÷¹ýʧÀà¹ýʧ
500 Internal Server Error£ºÌåÏÖЧÀÍÆ÷Óöµ½Á˹ýʧ£¬ÎÞ·¨Íê³ÉÇëÇó¡£
501 Not Implemented£ºÌåÏÖЧÀÍÆ÷²»Ö§³Ö¿Í»§¶ËÇëÇóµÄ¹¦Ð§¡£
502 Bad Gateway£ºÌåÏÖЧÀÍÆ÷×÷ΪÍø¹Ø»òÊðÀíʱ£¬ÎüÊÕµ½Á˹ýʧµÄÏìÓ¦¡£
503 Service Unavailable£ºÌåÏÖЧÀÍÆ÷Ä¿½ñÎÞ·¨´¦ÀíÇëÇ󣬿ÉÄÜÊÇÓÉÓÚά»¤»ò¹ýÔØ¡£
504 Gateway Timeout£ºÌåÏÖЧÀÍÆ÷×÷ΪÍø¹Ø»òÊðÀíʱ£¬Î´ÊµÊ±ÎüÊÕµ½À´×ÔÉÏÓÎЧÀÍÆ÷µÄÏìÓ¦¡£
505 HTTP Version Not Supported£ºÌåÏÖ¿Í»§¶ËʹÓõÄHTTPÐÒé°æ±¾²»±»Ð§ÀÍÆ÷Ö§³Ö¡£
×ܵÄÀ´Ëµ£¬Ê¹ÓÃLaravelµÄ¹ýʧÂë½ç˵£¬¿ÉÒÔ¼«´óµØÀû±ã¿ª·¢Ö°Ô±¶ÔLaravelÓ¦ÓóÌÐòµÄ¹ýʧºÍÒì³£µÄʵʱÏìÓ¦ºÍ´¦Àí£¬ÎªÓ¦ÓóÌÐòÌṩÁ˸ßЧ¡¢¿É¿¿µÄ°ü¹Ü¡£
ÒÔÉϾÍÊÇLaravelµÄ³£¼û¹ýʧÂëºÍÆä½ç˵µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡