lib/grape/dsl/inside_route.rb in grape-0.18.0 vs lib/grape/dsl/inside_route.rb in grape-0.19.0
- old
+ new
@@ -127,9 +127,11 @@
when nil
return @status if @status
case request.request_method.to_s.upcase
when Grape::Http::Headers::POST
201
+ when Grape::Http::Headers::DELETE
+ 204
else
200
end
else
raise ArgumentError, 'Status code must be Fixnum or Symbol.'