SRAMP-598 Improve error condition handling and map to applicable HTTP
response codes