mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fix response message on invoke handler (#1315)
* Fix response message on invoke handler Closes: #1310 * Addressing review comments * Addressing review comments * Fixing NoRoute routine * add method not allowed handler to gin
This commit is contained in:
@@ -14,6 +14,11 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrMethodNotAllowed = err{
|
||||
code: http.StatusMethodNotAllowed,
|
||||
error: errors.New("Method not allowed"),
|
||||
}
|
||||
|
||||
ErrInvalidJSON = err{
|
||||
code: http.StatusBadRequest,
|
||||
error: errors.New("Invalid JSON"),
|
||||
|
||||
Reference in New Issue
Block a user