Made ErrorResponse class for including messages with error codes