Skip to content

Commit dfa0251

Browse files
committed
chore: more accurate failure code
1 parent b80a865 commit dfa0251

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/spp/protocol/service/error/InstrumentAccessDenied.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import io.vertx.serviceproxy.ServiceException
2424
* @since 0.3.0
2525
* @author [Brandon Fergerson](mailto:[email protected])
2626
*/
27-
class InstrumentAccessDenied(val instrumentLocation: String, message: String? = null) : ServiceException(500, message) {
27+
class InstrumentAccessDenied(val instrumentLocation: String, message: String? = null) : ServiceException(403, message) {
2828

2929
fun toEventBusException(): InstrumentAccessDenied {
3030
return InstrumentAccessDenied(

src/main/kotlin/spp/protocol/service/error/PermissionAccessDenied.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import spp.protocol.platform.auth.RolePermission
2525
* @since 0.3.0
2626
* @author [Brandon Fergerson](mailto:[email protected])
2727
*/
28-
class PermissionAccessDenied(val permission: RolePermission, message: String? = null) : ServiceException(500, message) {
28+
class PermissionAccessDenied(val permission: RolePermission, message: String? = null) : ServiceException(403, message) {
2929

3030
fun toEventBusException(): PermissionAccessDenied {
3131
return PermissionAccessDenied(permission, "EventBusException:PermissionAccessDenied[$permission]")

0 commit comments

Comments
 (0)