Maru v0.10.0 Maru.Exceptions.MethodNotAllow exception
Raised when request path matched but method not matched. Catch this exception and return 405 like this:
rescue_from Maru.Exceptions.MethodNotAllow do
status 405
"Method Not Allow"
end
Summary
Functions
Callback implementation for c:Exception.exception/1
Callback implementation for c:Exception.message/1
Functions
Specs
exception(Keyword.t) :: Exception.t
Callback implementation for c:Exception.exception/1
.