Replacements depend on original error code: 400: returnClientError 404: returnServerError 500: returnServerError 501: returnServerError