match
def http_error(status):
match status:
case 400:i
return "Bad request"
case 404:
return "Not found"
case 418:
return "I'm a teapot"
case _:
return "Something's wrong with the internet"
if __name__ == '__main__':
print(http_error(status=400))