Define error codes.
Allow for request redirection.