Added 404 error codes for empty responses