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

exception(args)

Specs

exception(Keyword.t) :: Exception.t

Callback implementation for c:Exception.exception/1.

message(e)

Callback implementation for c:Exception.message/1.