Error in getting payload

Behaviour

returns error 401 message in case of authentication error

returns error 404 in case of incorrect request

.... standard http return codes