error handling for 403, 404 and 500
commit