Add support for errors in standard responses.