Method: TryApi::ExampleResponse.descriptions

Defined in:
app/models/try_api/example_response.rb

.descriptionsObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'app/models/try_api/example_response.rb', line 18

def descriptions
  {
      200 => :success,
      201 => :created,
      204 => :no_content,
      304 => :not_modified,
      400 => :bad_request,
      401 => :unauthorized,
      403 => :forbidden,
      404 => :not_found,
      408 => :request_timeout,
      422 => :unprocessable_entity,
      500 => :internal_server_error,
      502 => :bad_gateway,
      503 => :service_unavailable,
      504 => :gateway_timeout
  }
end