From 43851d2d358c4c342a80a863b059a6447c819c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Wed, 3 Jul 2019 15:13:38 +0200 Subject: [PATCH] feat: support 404 (resource not found) error on plugin register route --- src/protocol/routes/plugin-register.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocol/routes/plugin-register.ts b/src/protocol/routes/plugin-register.ts index 23689085..bf159b8b 100644 --- a/src/protocol/routes/plugin-register.ts +++ b/src/protocol/routes/plugin-register.ts @@ -16,6 +16,7 @@ import {OK} from 'http-status-codes'; import {Schema} from 'jsonschema'; import {SCInternalServerErrorResponse} from '../errors/internal-server-error'; import {SCMethodNotAllowedErrorResponse} from '../errors/method-not-allowed'; +import {SCNotFoundErrorResponse} from '../errors/not-found'; import {SCParametersNotAcceptable} from '../errors/parameters-not-acceptable'; import {SCPluginAlreadyRegisteredErrorResponse} from '../errors/plugin-already-registered'; import {SCPluginRegisteringFailedErrorResponse} from '../errors/plugin-registering-failed'; @@ -111,6 +112,7 @@ export class SCPluginRegisterRoute extends SCAbstractRoute { this.errorNames = [ SCInternalServerErrorResponse, SCMethodNotAllowedErrorResponse, + SCNotFoundErrorResponse, SCParametersNotAcceptable, SCPluginAlreadyRegisteredErrorResponse, SCPluginRegisteringFailedErrorResponse,