this post was submitted on 26 Jun 2023
121 points (92.3% liked)

Programmer Humor

32600 readers
62 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

Bit disappointed that this is not built into the c# http status codes. Was building a mock service and wanted to return something that would never occur in production for things I didn't have definitions for. This seemed like a perfect response but it's not part of the statues enum.

[โ€“] meekah 3 points 1 year ago

what stops you from just passing a 418 int? enums are just fancy ints in c#