(message: string = '', cause?: Error)
| 275 | |
| 276 | export class UnknownMethodError extends ProtocolError { |
| 277 | constructor(message: string = '', cause?: Error) { |
| 278 | super( |
| 279 | message || 'The requested command matched a known URL but did not match an method for that URL', |
| 280 | UnknownMethodError.w3cStatus(), |
| 281 | UnknownMethodError.error(), |
| 282 | cause, |
| 283 | ); |
| 284 | } |
| 285 | static w3cStatus() { |
| 286 | return HTTPStatusCodes.METHOD_NOT_ALLOWED; |
| 287 | } |