# Response Friend

## 친구 요청에 응답

<mark style="color:green;">`POST`</mark> `http://rightnow.p-e.kr/friend/response`

#### Request Body

| Name                                        | Type   | Description            |
| ------------------------------------------- | ------ | ---------------------- |
| req\_user<mark style="color:red;">\*</mark> | String |                        |
| res\_user<mark style="color:red;">\*</mark> | String |                        |
| answer<mark style="color:red;">\*</mark>    | String | accept(수락)/ reject(거절) |

{% tabs %}
{% tab title="200: OK 친구응답 수락 " %}

```javascript
{
    'message':'ok, accepted'
}
```

{% endtab %}

{% tab title="200: OK 친구응답 거절" %}

```javascript
{
    'message':'ok, rejected'
}
```

{% endtab %}

{% tab title="404: Not Found 일치하는 유저가 없음" %}

```javascript
{
    'message':'no exists user'
}
```

{% endtab %}

{% tab title="404: Not Found 요청이 존재하지 않음" %}

```javascript
{
    'message':'no exists request'
}
```

{% endtab %}

{% tab title="409: Conflict 이미 친구리스트에 존재" %}

```javascript
{
    'message':'already exists friend List'
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    'message':'err'
}
```

{% endtab %}
{% endtabs %}
