From 6125cde22305069044891bd1070648c1ba5fcbf9 Mon Sep 17 00:00:00 2001 From: FoxMaSk Date: Thu, 27 Sep 2018 21:38:16 +0200 Subject: [PATCH] Forbidden is 403 - typo :) --- ReactNativeClient/lib/services/rest/Api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactNativeClient/lib/services/rest/Api.js b/ReactNativeClient/lib/services/rest/Api.js index a1a17d5fc..6753a44f6 100644 --- a/ReactNativeClient/lib/services/rest/Api.js +++ b/ReactNativeClient/lib/services/rest/Api.js @@ -43,7 +43,7 @@ class ErrorNotFound extends ApiError { class ErrorForbidden extends ApiError { constructor(message = 'Forbidden') { - super(message, 404); + super(message, 403); } } @@ -173,7 +173,7 @@ class Api { } this.logger().info('Request (' + requestId + '): Created note ' + note.id); - + return note; }