Return error message in http header