Added 404 handling
Added 403 handling
Genericated the the HTTP error handling