Maru v0.11.4 Maru.Exceptions.MethodNotAllowed exception
Raised when request path matched but method not matched. Catch this exception and return 405 like this:
rescue_from Maru.Exceptions.MethodNotAllowed do
conn
|> put_status(405)
|> text("Method Not Allowed")
end
Summary
Functions
Callback implementation for Exception.exception/1
Callback implementation for Exception.message/1
Functions
Callback implementation for Exception.exception/1
.
Callback implementation for Exception.message/1
.