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