Project: mesos
Issue MESOS-4126: Construct the error string in `MethodNotAllowed`.
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 {code} return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'"); {code} we can write something like {code} MethodNotAllowed({"POST"}, request.method)` {code}
Story points: 1