bz-1011482:REST API: Inconsistent response type for error message