I have a GET /reports endpoint which is having pre-condition - list of particular forms should be filled before we fetch data for reports. In case any of those forms are not filled, an error should be sent to the client saying "X form should be filled before fetching report". Is 412 - Precondition failed valid HTTP status code for this scenario or should I use 424 - Failed Dependency?
Which HTTP Status code should indicate failed pre-conditions?
573 Views Asked by Dharita Chokshi At
1
There are 1 best solutions below
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in HTTP-STATUS-CODES
- Polly v8 - Retrying specific status codes using the PredicateBuilder
- How repeat a proxy server with a checksite after a failed
- How to handle 4xx status codes in auto-tests
- HttpStatusCode in Spring Boot 3
- What is causing my python script using Google APIs to throw a status code 3 & 6?
- HTTP response code when trying to associate an item with another but is already associated
- How does HTTP redirect work with HTTP methods?
- How to return status code 200 instead of 403 the default URL of my asp net framework application
- How to get status_code from an exception object
- appropriate HTTP status code for non-existent resources in REST API?
- axios give me error (POST /api/v1/users/token/refresh/ HTTP/1.1" 401 65) , How solve it?
- Does HTTP have a "not ready yet" response code?
- How to access http status in Azure Function v4
- Http Status must not be null error how to solve that error
- When loading an image in JavaScript fails, how can you retrieve the specific error or HTTP status codes?
Related Questions in HTTP-STATUS
- how to return only HTTP Status code, if we hit one pre-defined endpoint
- Check IMG URL status (PHP get_headers)
- Which HTTP status should I return if the client tries to upload a new file while server is still processing the previous one?
- Which is the proper response code for this scenario - 207 vs 400 status code
- Correct http status for invalid config in request body?
- HTTP status code for an expired confirmation code
- NestJS - Cannot set headers after they are sent to the client
- My TeaMaster9001 is responding with code 418 whenever I send a brew-coffee request
- REST API response status code - search GET that returns a single result
- What http status should I send for a malformed json response?
- HTTP status quote when a resource can't be inserted but could be fixed by the client
- How to force Spring Boot to set correct HTTP status code to error response?
- Is there any possibility to get status code i.e. (200,301,302) after loading html page in CefSharp C#?
- Detecting 413 (or other HTTP Status) in PHP
- How do I force Nancy to use application/json Response for Integers? Nancy assumes them to be StatusCode
Related Questions in HTTP-STATUS-CODE-412
- What is the best way to handle 412 pre-condition failed errors?
- Firebase storage returning 412 error even after enabling storage API
- 304 response from a non modifying POST request
- Bot-Builder python State Storage in DocDB: 412 Data Store pre-condition not met?
- Generating ETag in GET response Header Java spring To solve 412 http error
- HTTP conditional requests
- Getting "H2OResponseError: ModelBuilderErrorV3" "Missing training frame" when training with GLM http_status = 412
- Which HTTP Status code should indicate failed pre-conditions?
- Permissions denied when using offline access for google SA360 API in google script
- CalDav Client for iCloud: MKCOL fails with 412 precondition failed
- 412 precondition failed no response
- 412 (precondition failed) in Django
- How to fix 412 (Precondition Failed) Error HTML5 Video Tag
- PHP CURL 412 error
- Connect to AEM 6.0 JCR: Precondition Failed
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The most appropriate status code is probably 409. 409 is often used in cases where a request could not be completed, due the state of another resource not being right.
Unless you are doing something with the 409 specifically though, 400 is fine too.