What user-defined request error levels are recommended?

Dan Campbell dcwhatthe at gmail.com
Thu Apr 30 16:14:42 EDT 2020


Hi, what range of error codes are recommended, if we wanted to return a user-defined code?

Obviously, we don't want to use a code in the 200+ range, or the 400+ range, e.g.

I want to throw, or just return, a code that represents that the size of a web page (len(response.content)) is less than the expected size.




More information about the Python-list mailing list