(message: string = '', cause?: Error)
| 185 | |
| 186 | export class UnknownCommandError extends ProtocolError { |
| 187 | constructor(message: string = '', cause?: Error) { |
| 188 | super( |
| 189 | message || |
| 190 | 'The requested resource could not be found, or a request was ' + |
| 191 | 'received using an HTTP method that is not supported by the mapped ' + |
| 192 | 'resource.', |
| 193 | UnknownCommandError.w3cStatus(), |
| 194 | UnknownCommandError.error(), |
| 195 | cause, |
| 196 | ); |
| 197 | } |
| 198 | static w3cStatus() { |
| 199 | return HTTPStatusCodes.NOT_FOUND; |
| 200 | } |