On my website users can enter a HTTP status code into a standard text input field. i.e, 200, 400, 404, 403 etc...
Is there any way to check if the HTTP status code is valid. For example if a user enters '123' it will return false. I currently cannot think of or find a way other than doing a large ugly if or switch statement.