This is not valid JSON, the keys need to be strings. I think just returning a Hash would work: `{ 'message' => 'Sync already in progress' }`.