Skip to content

Commit 41a924f

Browse files
bf4pareeohnosAdrian Hooper
authored
Change method used to retrieve rack status (#1457) (#1463)
Fixes #1456 Co-authored-by: pareeohnos <[email protected]> Co-authored-by: Adrian Hooper <[email protected]>
1 parent 7297511 commit 41a924f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonapi/error.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(options = {})
1515
@source = options[:source]
1616
@links = options[:links]
1717

18-
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE[options[:status]].to_s
18+
@status = Rack::Utils.status_code(options[:status]).to_s
1919
@meta = options[:meta]
2020
end
2121

@@ -46,7 +46,7 @@ def update_with_overrides(error_object_overrides)
4646

4747
if error_object_overrides[:status]
4848
# :nocov:
49-
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE[error_object_overrides[:status]].to_s
49+
@status = Rack::Utils.status_code(error_object_overrides[:status]).to_s
5050
# :nocov:
5151
end
5252
@meta = error_object_overrides[:meta] || @meta

0 commit comments

Comments
 (0)