You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
*[#1216](https://github.com/ruby-grape/grape/pull/1142): Fix JSON error response when calling `error!` with non-Strings - [@jrforrest](https://github.com/jrforrest).
19
19
*[#1225](https://github.com/ruby-grape/grape/pull/1225): Fix `given` with nested params not returning correct declared params - [@JanStevens](https://github.com/JanStevens).
20
20
*[#1249](https://github.com/ruby-grape/grape/pull/1249): Don't fail even if invalid type value is passed to default validator - [@namusyaka](https://github.com/namusyaka).
21
+
*[#1264](https://github.com/ruby-grape/grape/pull/1264): Unify behavior of default_error_status - [@namusyaka](https://github.com/namusyaka).
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1612,6 +1612,8 @@ class API < Grape::API
1612
1612
end
1613
1613
```
1614
1614
1615
+
Of course, `default_error_status` does not depend on the timing of route definition, so mounted application can also use the default error status code.
1616
+
1615
1617
### Handling 404
1616
1618
1617
1619
For Grape to handle all the 404s for your API, it can be useful to use a catch-all.
0 commit comments