Proper REST HTTP error code use