Mentorship-backend: Fix: refactor HTTP error codes POST /mentorship_relation/{request_id}/task

Created on 4 Jun 2020  路  2Comments  路  Source: anitab-org/mentorship-backend

Description

As a GSoC student,
I need the correct HTTP error response code to be returned accordingly by Mentorship System API in relation to POST /mentorship_relation/{request_id}/task,
so that I can represent the error message accordingly to both Mentorship System and Bridge In Tech users.

Mocks

NA

Acceptance Criteria

Update [Required]

  • [ ] 201: Created needs to be returned instead of 200:OK if the process is successful
  • [ ] 403: Forbidden needs to be returned instead of 400: Bad Request if it has unaccepted state relation

Enhancement to Update [Optional]

Definition of Done

  • [ ] All of the required items are completed.
  • [x] Approval by 1 mentor.

Estimation

1 hour

Coding Bug

Most helpful comment

Sure assigning you @gaurivn
Happy coding:)

All 2 comments

@anitab-org/mentorship-managers, I would like to work on this issue.

Sure assigning you @gaurivn
Happy coding:)

Was this page helpful?
0 / 5 - 0 ratings