Sign in
apache
/
openwhisk-runtime-ruby
/
81ad63a6c30b540c150ddb3ff4dc2a2bc911ad7f
/
.
/
core
/
ruby2.5Action
/
rackapp
/
response
/
error.rb
blob: 57d95848f9740f71e16213e3ef8273ec754b7e9e [
file
] [
log
] [
blame
]
class
ErrorResponse
<
Rack
::
Response
def
initialize
(
body
=
[],
status
=
500
,
header
=
{})
super
({:
error
=>
body
}.
to_json
,
status
,
header
.
merge
({
'Content-Type'
=>
'application/json'
}))
end
end