File size: 267 Bytes
5eb110b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
def http_error(status):
    match status:
        case 400:
            return "Bad request"
        case 404:
            return "Not found"
        case 418:
            return "I'm a teapot"
        case _:
            return "Something's wrong with the Internet"