chore(rest): unify 204 media type
fix(rest): fix return codes