Title: Return &#8220;Error: Request failed with status code 400&#8221; in Browser
Last modified: February 21, 2022

---

# Return “Error: Request failed with status code 400” in Browser

 *  [mueeznarejo](https://wordpress.org/support/users/mueeznarejo/)
 * (@mueeznarejo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/return-error-request-failed-with-status-code-400-in-browser/)
 * Hi, Thanks for this amazing plugin, My issue is all the request works well with
   Postman but in the browser(localhost:3000) it returns Error: Request failed with
   status code 400
 * I have tried with JS fetch and Axios but both of them return same error
    -  This topic was modified 4 years, 3 months ago by [mueeznarejo](https://wordpress.org/support/users/mueeznarejo/).
    -  This topic was modified 4 years, 3 months ago by [mueeznarejo](https://wordpress.org/support/users/mueeznarejo/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [dominic_ks](https://wordpress.org/support/users/dominic_ks/)
 * (@dominic_ks)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/return-error-request-failed-with-status-code-400-in-browser/#post-15386813)
 * Hey [@mueeznarejo](https://wordpress.org/support/users/mueeznarejo/),
 * Thanks for using the plugin and reporting your issue.
 * Off the bat, the fact that it works in Postman but not in the browser makes me
   think that it’s related to how you’re making the call in the browser, can you
   give me some more info on that?
 * i.e. are you making the call from a JavaScript app / framework of some kind? 
   Are you able to check the payload your are sending in the developer tools / console
   of your browser?
 * Also, is there any other message that comes back with the 400 code? All of the
   errors produced by the plugin should come with an error message.
 * Cheers,
    Dominic,
    -  This reply was modified 4 years, 3 months ago by [dominic_ks](https://wordpress.org/support/users/dominic_ks/).
 *  Thread Starter [mueeznarejo](https://wordpress.org/support/users/mueeznarejo/)
 * (@mueeznarejo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/return-error-request-failed-with-status-code-400-in-browser/#post-15386835)
 * [@dominic_ks](https://wordpress.org/support/users/dominic_ks/)
 * Yes, I am using React.js with Next.js as a front-end
 *     ```
       POST https://test.hallarazad.com/wp-json/bdpwr/v1/reset-password         400
       Error: Request failed with status code 400
           at createError (createError.js?770c:16:1)
           at settle (settle.js?8768:17:1)
           at XMLHttpRequest.onloadend (xhr.js?1a5c:66:1)
       ```
   
 *  Plugin Author [dominic_ks](https://wordpress.org/support/users/dominic_ks/)
 * (@dominic_ks)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/return-error-request-failed-with-status-code-400-in-browser/#post-15386847)
 * [@mueeznarejo](https://wordpress.org/support/users/mueeznarejo/)
 * Thanks for that, though I don’t know if I can do much to help here without details
   of the request, I recommend checking the network tabs of the developer console
   in your browser and looking at the request payload. i.e. for this call checking
   that you are providing the `email` parameter and it’s properly formatted JSON.
 * And again, in the network tab, the actual response from your server, it should
   look something like this:
 *     ```
       {
           "code": "bad_email",
           "message": "No user found with this email address.",
           "data": {
               "status": 500
           }
       }
       ```
   
 * Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Return “Error: Request failed with status code 400” in Browser’ is closed
to new replies.

 * ![](https://ps.w.org/bdvs-password-reset/assets/icon-128x128.jpg?rev=2301474)
 * [Password Reset with Code for WordPress REST API](https://wordpress.org/plugins/bdvs-password-reset/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bdvs-password-reset/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bdvs-password-reset/)
 * [Active Topics](https://wordpress.org/support/plugin/bdvs-password-reset/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bdvs-password-reset/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bdvs-password-reset/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [dominic_ks](https://wordpress.org/support/users/dominic_ks/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/return-error-request-failed-with-status-code-400-in-browser/#post-15386847)
 * Status: not resolved