UTF-8 explicit encoding and handle http error codes in error handler.