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
If no status code is defined [defaults](/lib/grape-swagger/endpoint.rb#L121) would be taken.
790
+
If no status code is defined [defaults](/lib/grape-swagger/endpoint.rb#L210) would be taken.
790
791
791
792
The result is then something like following:
792
793
@@ -807,6 +808,33 @@ The result is then something like following:
807
808
},
808
809
```
809
810
811
+
<a name="change-status" />
812
+
#### Changing default status codes
813
+
814
+
The default status codes, one could be found (-> [status codes](lib/grape-swagger/doc_methods/status_codes.rb)) can be changed to your specific needs, to achive it, you have to change it for grape itself and for the documentation.
815
+
816
+
```ruby
817
+
desc 'Get a list of stuff',
818
+
success: { code: 202, model: Entities::UseResponse, message: 'a changed status code' }
0 commit comments