handle 404 and 500 errors;
new link to documentaion in error messages