test case to check if httpserver raises error for wrong type of status code