From f5aa5960e9910313018b174e8cbc052d043253a3 Mon Sep 17 00:00:00 2001 From: muzafarova Date: Fri, 6 Jun 2025 17:34:46 +0100 Subject: [PATCH 1/2] feat: add InternalError error --- src/schema/job-board-application.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/schema/job-board-application.json b/src/schema/job-board-application.json index 2123ae6d..a341e8e8 100644 --- a/src/schema/job-board-application.json +++ b/src/schema/job-board-application.json @@ -1014,6 +1014,12 @@ "code": "AlreadyApplied", "category": "client", "description": "An application has already been sent" + }, + { + "code": "InternalError", + "category": "server", + "description": "Something went wrong on our side" } + ] } From 6c6e64253abcb3bd214bd9edd8e9fb5e2e604b62 Mon Sep 17 00:00:00 2001 From: muzafarova Date: Wed, 11 Jun 2025 12:28:33 +0100 Subject: [PATCH 2/2] fix: sort JobBoardDomain errors A-Z --- src/schema/job-board-application.json | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/schema/job-board-application.json b/src/schema/job-board-application.json index 92014931..82b8342b 100644 --- a/src/schema/job-board-application.json +++ b/src/schema/job-board-application.json @@ -976,9 +976,9 @@ }, "errors": [ { - "code": "FileTypeNotSupported", + "code": "AlreadyApplied", "category": "client", - "description": "File type not supported" + "description": "An application has already been sent" }, { "code": "ApplicantDetailsInvalid", @@ -986,19 +986,14 @@ "description": "Applicant details invalid" }, { - "code": "JobExpired", - "category": "client", - "description": "Job expired" - }, - { - "code": "JobNotFound", + "code": "ApplicationFailed", "category": "client", - "description": "Job could not be found" + "description": "Application process failed" }, { - "code": "MandatoryQuestionsNotAnswered", + "code": "AtsLookupError", "category": "client", - "description": "Mandatory questions must be answered" + "description": "An ATS Lookup failed to resolve the provided URL" }, { "code": "FileFailedToUpload", @@ -1006,14 +1001,9 @@ "description": "File could not be uploaded" }, { - "code": "ApplicationFailed", - "category": "client", - "description": "Application process failed" - }, - { - "code": "AlreadyApplied", + "code": "FileTypeNotSupported", "category": "client", - "description": "An application has already been sent" + "description": "File type not supported" }, { "code": "InternalError", @@ -1021,9 +1011,19 @@ "description": "Something went wrong on our side" }, { - "code": "AtsLookupError", + "code": "JobExpired", "category": "client", - "description": "An ATS Lookup failed to resolve the provided URL" + "description": "Job expired" + }, + { + "code": "JobNotFound", + "category": "client", + "description": "Job could not be found" + }, + { + "code": "MandatoryQuestionsNotAnswered", + "category": "client", + "description": "Mandatory questions must be answered" } ] }