dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.32k stars 1.25k forks source link

Deal with bad actors who throw http exceptions with invalid codes #1747

Closed specialtactics closed 3 years ago

specialtactics commented 3 years ago

This deals with very unusual circumstances, for example when something throws an HTTP exception with a code of "0" or other invalid codes. In theory, this should not happen, but in practice anything is possible.