use proper response headers and status code, giving info about message transmission