fix REST status codes that were wrongly coded