Reformat imports
Rework flow of main
Explicitly specify valid response statuses