Added handling of error condition to REST API.

refs #4592

Added graceful error handings when a REST API transfer approval
request includes an invalid transfer type.