Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Mesosphere Sprint 35
-
3
Description
Consider constructing the error string in MethodNotAllowed rather than at the invocation site. Currently we want all error messages follow the same pattern, so instead of writing
return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'");
we can write something like
MethodNotAllowed({"POST"}, request.method)