better error handling for the right http status codes