Skip to content

Commit 15745d9

Browse files
authored
Merge pull request #15566 from Godmartinz/status-label-error-message
Fixed Status Labels Error Message
2 parents bd97955 + 3f74ff2 commit 15745d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/Api/StatuslabelsController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public function store(Request $request) : JsonResponse
9595
$request->except('deployable', 'pending', 'archived');
9696

9797
if (! $request->filled('type')) {
98-
return response()->json(Helper::formatStandardApiResponse('error', null, ['type' => ['Status label type is required.']]), 500);
98+
99+
return response()->json(Helper::formatStandardApiResponse('error', null, ['type' => ['Status label type is required.']]));
99100
}
100101

101102
$statuslabel = new Statuslabel;

0 commit comments

Comments
 (0)