response codes for invalid requests