Skip to content

Backend returns 500 instead of 404 for unknown student IDs #147

Description

@SahilKumar75

GET /students/:id throws a NullPointerException when the ID does not exist in the DB, returning HTTP 500. Should return 404 with a descriptive message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendJava Spring backendbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions