Sha256: 116a30e741c9898c8b58e23281ae053bc671358c4341745ed32c38856880fa65
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
module Esplanade class Response class Error def self.unsuitable(message) status = '500' headers = { 'Content-Type' => 'application/json; charset=utf-8' } body = [MultiJson.dump(error: [message[2..-3]])] [status, headers, body] end def self.not_documented status = '500' headers = { 'Content-Type' => 'application/json; charset=utf-8' } body = [MultiJson.dump(error: ['Not documented'])] [status, headers, body] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
esplanade-0.1.0 | lib/esplanade/response/error.rb |