package org.ihtsdo.otf.rest.exception;

public class ResourceNotFoundException extends BusinessServiceRuntimeException {

	private static final long serialVersionUID = -4281549626769059242L;

	public ResourceNotFoundException(String resourceType, String resourceKey) {
		super(resourceType + " with key " + resourceKey + " is not accessible.");
	}

	public ResourceNotFoundException(String message) {
		super(message);
	}

	public ResourceNotFoundException(Throwable cause) {
		super(cause);
	}

	public ResourceNotFoundException(String message, Throwable cause) {
		super(message, cause);
	}

}

package org.ihtsdo.otf.rest.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Resource not found")
public class ResourceNotFoundException extends BusinessServiceRuntimeException {

	private static final long serialVersionUID = -4281549626769059242L;

	public ResourceNotFoundException(String resourceType, String resourceKey) {
		super(resourceType + " with key " + resourceKey + " is not accessible.");
	}

	public ResourceNotFoundException(String message) {
		super(message);
	}

	public ResourceNotFoundException(Throwable cause) {
		super(cause);
	}

	public ResourceNotFoundException(String message, Throwable cause) {
		super(message, cause);
	}

}

Add Spring HTTP response code to ResourceNotFoundException.