Sign in
apache
/
openwhisk-runtime-ruby
/
be869330798162e174433cfe98af3576741dcce3
/
.
/
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