adds not found and bad request errors