opensearch-project / opensearch-project/opensearch-java

[QUESTION] Opensearch java client Error to HttpStatus code mapping

Open
#1,522 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Java
Stars
165
Forks
250
Avg merge
1d 18h
Merged PRs (30d)
26

Description

Describe the bug

If an Exception occurs in the OpenSearch java client (I am using 2.19.0 version) it throws OpenSearchException and it has a type property which can be equal to illegal_argument_exception, mapper_parsing_exception or index_not_found_exception etc.

String errorType = OpenSearchException::error().type()
What are all possible type options and associated http statues? I was trying to find an official documentation page but could not.

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 with the Java client's OpenSearchException.error().type() entry point and determine where the possible error types and HTTP statuses are defined or documented. No source file or test is named in the issue; done means providing an official, complete mapping or linking to authoritative documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, documentation
Issue type
Documentation
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.