Retrieve error's HTTP code in a separate method.
It's internal server thing that is not for the outside users.