Error handling for 200 ok responses with error prop