# Code maintenance NEX-584 - Remove 500 status code checks from API tests

Project: Stream Nextcloud app "OpenProject Integration"
Status: on hold
URL: https://community.openproject.org/work_packages/NEX-584

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee | Sajan Gurung |
| Accountable | JankariTech Dev |
| Designer |  |
| Developers |  |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions |  |
| Module |  |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

Due to the differences in setup, invalid json request returns 500 server error instead of 400 bad request. See [https://github.com/juliusknorr/nextcloud-docker-dev/issues/449](https://github.com/juliusknorr/nextcloud-docker-dev/issues/449)

Currently, we are checking either 400 or 500 as valid status code for invalid json API tests. We should follow up on the setup issue and remove accepting 500 as valid response in the tests.  
TODO:

*   [ ] revet the [changes](https://github.com/nextcloud/integration_openproject/pull/971/changes#diff-4a7e898feb4593b73a10915c04aee63bb8f3b8c7689872fcc716515d3b7b5125R674-R683), once we figure out the cause for 500 in the [nextcloud-docker-dev](https://github.com/juliusknorr/nextcloud-docker-dev/issues/449) image
