Added documentation on API error handlers