fleet/server/service/middleware
Victor Lyuboslavsky 722a206115
Fix 500 return code for several endpoints. (#14859)
Fixed 500 return code from several endpoints.

/api/v1/fleet/perform_required_password_reset
- Now returns 403 when Authorization token is missing

/api/v1/fleet/hosts_summary
- Now returns 400 when low_disk_space parameter is invalid

/api/v1/fleet/demologin
- Now returns 403

/api/v1/fleet/sessions/*
- Now returns 400 on invalid input

#12274

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-11-02 12:32:34 -05:00
..
authzcheck Fix 500 return code for several endpoints. (#14859) 2023-11-02 12:32:34 -05:00
mdmconfigured Merging Bitlocker feature branch (#14350) 2023-10-06 19:04:33 -03:00
ratelimit If the fleet/forgot_password endpoint is rate limited, it should return the proper status code (#12323) 2023-06-15 15:41:04 -04:00