OpenBankProject / OpenBankProject/OBP-API

400 Bad Request with no message being returned where more return info is expected

Open
#689 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.7k
Forks
482
Avg merge
1d 12h
Merged PRs (30d)
15

Description

better_response_message_required
Exception message issue.
When a request is performed for which an error is returned (example below), some detail is required to inform the user about the status and what the error actually is.

Example:

GET https://apisandbox.openbankproject.com/obp/v3.0.0/banks/rbs/accounts/abcd1234/kapil_view/other_accounts/aki123

Should return a more meaningful message than

400 Bad Request

{
  "error": "error"
}

Suggested response code detail:
403 Forbidden
The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the request to the listed OBP API endpoint and trace where its generic 400 response is produced. Determine how the underlying error should map to a meaningful status and message, including the suggested permission-related 403 case; done means the response explains the failure instead of returning only {"error":"error"}.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.