summaryrefslogtreecommitdiff
path: root/spec/frontend_integration/test_helpers/mock_server/routes/404.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend_integration/test_helpers/mock_server/routes/404.js')
-rw-r--r--spec/frontend_integration/test_helpers/mock_server/routes/404.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend_integration/test_helpers/mock_server/routes/404.js b/spec/frontend_integration/test_helpers/mock_server/routes/404.js
index 54183f1189c..38742087675 100644
--- a/spec/frontend_integration/test_helpers/mock_server/routes/404.js
+++ b/spec/frontend_integration/test_helpers/mock_server/routes/404.js
@@ -1,9 +1,10 @@
import { Response } from 'miragejs';
+import { HTTP_STATUS_NOT_FOUND } from '~/lib/utils/http_status';
export default (server) => {
['get', 'post', 'put', 'delete', 'patch'].forEach((method) => {
server[method]('*', () => {
- return new Response(404);
+ return new Response(HTTP_STATUS_NOT_FOUND);
});
});
};