Added logic to return HTTP 500 for API errors.

refs #4593

Added logic to return an HTTP 500 when the transfer approval REST
API returns error-related content.