Renamed sendErrors method to sendResponse

Added Content-Type to HTTP responses

Updated error messaging