# Yum does not display the custom message sent from Sonatype Nexus Repository Manager

**URL:** <https://community.sonatype.com/t/yum-does-not-display-the-custom-message-sent-from-sonatype-nexus-repository-manager/9266>\
**Category:** Sonatype Nexus Repository\
**Tags:** integrations, nexus-repository, nexus, nexus-v3\
**Created:** [September 7, 2022, 8:48am UTC](https://community.sonatype.com/t/yum-does-not-display-the-custom-message-sent-from-sonatype-nexus-repository-manager/9266 "2022-09-07T08:48:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![shihaazbz](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/shihaazbz/32/2418_2.png) [@shihaazbz](https://community.sonatype.com/u/shihaazbz)\
**Post date:** [September 7, 2022, 8:48am UTC](https://community.sonatype.com/t/yum-does-not-display-the-custom-message-sent-from-sonatype-nexus-repository-manager/9266/1 "2022-09-07T08:48:32Z")

</div>

We are trying to implement **Yum** support for one of our plugins developed for **Sonatype Nexus Repository Manager (NRM)**. The users set up **Yum Proxy** in NRM to download and install the packages Eg: `yum install <package>`.

Our goal is to send back and display a custom message in user’s Yum client when the user initiates installation. This custom message will be generated based on a specific criteria checked at the backend logic of the plugin.

However, the Yum client is displaying only the errorCode but not the custom message.

 ![yum](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/6/681a3a7c3c89c1c3aee460f63507c965b5b62ad2.png)

We tried different errorCodes as well as the `debuglevel` option to see if it displays additional logs. But it was not successful. Is there an approach or a workaround to overcome this issue? Appreciate your thoughts and support on this. Thank you.

Below is how we are constructing the Response object from Nexus plugin:

```auto
@Singleton
public class MyConditionalRequestHandler extends ConditionalRequestHandler {
    @Override
    public Response handle(@Nonnull Context context) throws Exception {
        Builder builder = new Response.Builder();
        Response response = builder.status(new Status(true, "400", "Custom Message")).build();
        return response;
    }
}

```

Types:

- org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler
- org.sonatype.nexus.repository.view.Response
- org.sonatype.nexus.repository.view.Status.Status(boolean successful, int code, @Nullable String message)

---

_[View the full topic](https://community.sonatype.com/t/yum-does-not-display-the-custom-message-sent-from-sonatype-nexus-repository-manager/9266)._
