Completed a TODO by supporting specific HTTP errors.
Completed a TODO by supporting specific HTTP errors.

Factored out the write logic into its own function so that HTTP status
codes can be set depending on the type of Throwable given to write().
UnsupportedOperationExceptions now raise 400 errors while anything else
still raises a 500 error.
latis-data/latis,latis-data/latis