Represents an error that can be translated to an HTTP status code (404, 500, etc.)

Constructor

new (message:String, statusCode:Int)

Parameters:

message

The error message

statusCode

The HTTP status code

Methods

getStatusCode ():Int

Returns:

The HTTP status code

Inherited Variables

Inherited Methods

Defined by Exception

getMessage ():String

Returns:

The error message