Created an enum-class for HTTP status codes.
Changed the status code from a number to the HttpStatusCode enum.