fix some error responses