It is the http status code, not the error number. I think to create a map to handle an error without string comparisons is good.
I will add a map to manage all the errors.