# How do I get 400 Bad Request, 401, 403 and 404 error purposely, what data I have to modify in the request, or in the body so that I can get these error (response code) I can get for same request? ANy one please help me on this?

**URL:** <https://community.postman.com/t/how-do-i-get-400-bad-request-401-403-and-404-error-purposely-what-data-i-have-to-modify-in-the-request-or-in-the-body-so-that-i-can-get-these-error-response-code-i-can-get-for-same-request-any-one-please-help-me-on-this/48204>\
**Category:** Help Hub\
**Created:** [June 6, 2023, 12:28pm UTC](https://community.postman.com/t/how-do-i-get-400-bad-request-401-403-and-404-error-purposely-what-data-i-have-to-modify-in-the-request-or-in-the-body-so-that-i-can-get-these-error-response-code-i-can-get-for-same-request-any-one-please-help-me-on-this/48204 "2023-06-06T12:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashantshahapure](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@prashantshahapure](https://community.postman.com/u/prashantshahapure)\
**Post date:** [June 6, 2023, 12:28pm UTC](https://community.postman.com/t/how-do-i-get-400-bad-request-401-403-and-404-error-purposely-what-data-i-have-to-modify-in-the-request-or-in-the-body-so-that-i-can-get-these-error-response-code-i-can-get-for-same-request-any-one-please-help-me-on-this/48204/1 "2023-06-06T12:28:45Z")

</div>

_My question_:  
How do I get 400 Bad Request, 401, 403 and 404 error purposely, what data I have to modify in the request, or in the body so that I can get these error (response code) I can get? ANy one please help me on this?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [June 6, 2023, 2:24pm UTC](https://community.postman.com/t/how-do-i-get-400-bad-request-401-403-and-404-error-purposely-what-data-i-have-to-modify-in-the-request-or-in-the-body-so-that-i-can-get-these-error-response-code-i-can-get-for-same-request-any-one-please-help-me-on-this/48204/2 "2023-06-06T14:24:58Z")

</div>

This will be down to the API.

Look at what the API needs, and then send something non compliant.

That should trigger one of the above.

If a request needs a JSON body, then don’t send a body at all. It really is down to how the API handles errors.
