Adding errors controller for HTTP error code handling