Home Manual Reference Source Test API Healthcheck
public class | source

RequestError

Extends:

Error → RequestError

Request Error Class to help set a response code and message to display to the user

Constructor Summary

Public Constructor
public

constructor(msg: string, code: number)

Create a new Request Error

Member Summary

Public Members
public

code: *

Public Constructors

public constructor(msg: string, code: number) source

Create a new Request Error

Params:

NameTypeAttributeDescription
msg string

message to display when returned

code number

response status code to set in Hapi Response

Public Members

public code: * source