aws-samples / serverless-rust-demo

Sample serverless application written in Rust
MIT No Attribution
271 stars 22 forks source link

Use http status code constants #33

Closed mbergkvist closed 2 years ago

mbergkvist commented 2 years ago

Description of changes:

This changes the api gateway lambda entrypoints to use http status code constants from http instead of literals. No functional change, but I think it increases readability and reduces risk of errors and the cognitive load (I don't have to know what e.g. status code `201' means) when using the constants.

This also included some typo fixes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

nmoutschen commented 2 years ago

Thanks a lot for the contribution! LGTM!