Class StandardError
In: lib/serverside/http/error.rb
Parent: Object

StandardError extensions.

Methods

Public Class methods

Sets the HTTP status code associated with the error class.

[Source]

    # File lib/serverside/http/error.rb, line 9
 9:   def self.set_http_status(value)
10:     define_method(:http_status) {value}
11:   end

Public Instance methods

Returns the HTTP status code associated with the error class.

[Source]

   # File lib/serverside/http/error.rb, line 4
4:   def http_status
5:     ServerSide::HTTP::STATUS_INTERNAL_SERVER_ERROR
6:   end

[Validate]