stackmuncher / stm_server

The server-side code behind stackmuncher.com, a global directory of software developers.
https://stackmuncher.com
GNU Affero General Public License v3.0
2 stars 0 forks source link

Return soft 404 on User Not Found #21

Closed rimutaka closed 2 years ago

rimutaka commented 3 years ago

https://github.com/stackmuncher/stm_server/blob/master/stm_html_ui/src/html/dev_profile.rs does not look inside the ES response, which may or may not contain the data that was requested and sets the status to 200 OK.

If the requested login was not found it should return 404. It can be done by checking if the path to the data inside the response is present without actually unwrapping it.