BZ-1074989 - REST API returns HTTP code 500 even though it is obviously not a server error and rather incorrect request