Response Assertion API in test scripts

Hello,

I was using the below as mentioned in the postman documentation:

pm.response.to.be.badRequest

The request that I fire is actually giving me a Bad Request but somehow the assertion failed with the below message:
AssertionError | expected response to have status reason ‘BADREQUEST’ but got ‘BAD REQUEST’

Let me know what is wrong here.

Postman Version:
Postman helps you develop APIs faster
Postman for Linux
Version 5.5.0

Hey @Kency, this has been fixed in recent versions of the Postman app, see https://github.com/postmanlabs/postman-app-support/issues/4348 for more context :smile: