parse error responses

the API i'm working with returns EDN responses for errors, and I want to parse these out same as with successful requests to display the message.